'''
Created on 2010-4-17

@author: Zizon
'''
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

from com.google.code.zkit.twitter.CommonApiProxy import CommonApiProxy
from com.google.code.zkit.twitter.SearchApiProxy import SearchApiProxy
from com.google.code.zkit.twitter.VerifyCredentialsProxy import VerifyCredentialsProxy
from com.google.code.zkit.twitter.BlackHoldHandler import BlackHoldHandler
from com.google.code.zkit.twitter.OauthProxy import OauthProxy

application = webapp.WSGIApplication([
                                        ('/twitter/search.*' , SearchApiProxy),
                                        ('/twitter/oauth/.*', OauthProxy),
                                        ('/twitter/account/verify_credentials.*', VerifyCredentialsProxy),
                                        ('/twitter/.*', CommonApiProxy),
                                        ('.*', BlackHoldHandler)
                                     ])

def main():
    run_wsgi_app(application)

if __name__ == '__main__':
    main();
